﻿using System;
using System.Collections.Generic;
using Color = System.Drawing.Color;
using SwinGame;

namespace Gundam_2._0_Alpha.src
{
    public class TextButton: Button
    {
        private string buttonName;

        public string ButtonName
        {
            get { return buttonName; }
        }

        public TextButton(KeyCode k, string buttonName,int textPosX,int textPosY,bool isActive)
            : base(k, isActive, textPosX, textPosY)
        {
            this.buttonName = buttonName;
        }

        public override void Draw()
        {
            if (IsActive)
                Text.DrawText(buttonName, Color.DarkKhaki,GlobalConst.F60, ButtonPos);
            else
                Text.DrawText(buttonName, Color.BlueViolet, GlobalConst.F60, ButtonPos);
        }
    }
}
